home *** CD-ROM | disk | FTP | other *** search
/ Magnum One / Magnum One (Mid-American Digital) (Disc Manufacturing).iso / d12 / jazlib.arc / JZGETDTA.C < prev    next >
Text File  |  1988-12-18  |  938b  |  24 lines

  1. /*
  2. ┌────────────────────────────────────────────────────────────────────────────┐
  3. │jzgetdta.c                                                                  │
  4. │Return the disk transfer address so that a routine may temporarily change   │
  5. │it , then change it back.                                                   │
  6. │                                                                            │
  7. │See jzgetfcb.c for examples                                                 │
  8. │                                                                            │
  9. │ (C) JazSoft Software by Jack A. Zucker (301) 794-5950                      │
  10. └────────────────────────────────────────────────────────────────────────────┘
  11. */
  12.  
  13. jzgetdta(fofs , fseg)
  14. int *fofs,*fseg;
  15. {
  16.   TREG wreg;
  17.  
  18.   wreg.h.ah = 0x2F;        /* get dta function */
  19.   msdos(&wreg);         /* call dos to get dta address */
  20.  
  21.   *fofs = wreg.x.bx;
  22.   *fseg = wreg.x.es;
  23. }
  24.